<?php

namespace Xrfg\Core\Trading\Spot\Models;

use Illuminate\Database\Eloquent\Model;
use Xrfg\Core\Trading\Account\Models\Coin;
use Xrfg\Core\User\Models\User;

class SpotAccountCapitalflow extends Model
{
    protected $table = 'trading_spot_account_capitalflows';

    protected $fillable = ['user_id', 'coin_id', 'available_before', 'available_number', 'available_after', 'disabled_before', 'disabled_number', 'disabled_after', 'certificate', 'proof_id', 'class_id', 'op_id', 'version'];

    public function coin()
    {
        return $this->belongsTo(Coin::class, 'coin_id');
    }

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}
